/**
 * Created by dashan on 2017/3/18.
 */


var URL = require('url');

var myUrl = "http://www.nodejs.org/some/url/?with=query&param=that&are=awesome#alsoahash";

 var parsedUrl=URL.parse(myUrl);

console.log(parsedUrl);

console.log("-======================================");

console.log(URL.format(parsedUrl));


var qs = require('querystring');
console.log(qs.parse('a=1&b=2&c=d'));

